import request from '@/utils/request'

// 查询货盘列表
export function listPallets(query) {
  return request({
    url: '/pallet/pallets/list',
    method: 'get',
    params: query
  })
}

// 查询货盘详细
export function getPallets(id) {
  return request({
    url: '/pallet/pallets/' + id,
    method: 'get'
  })
}

// 新增货盘
export function addPallets(data) {
  return request({
    url: '/pallet/pallets',
    method: 'post',
    data: data
  })
}

// 修改货盘
export function updatePallets(data) {
  return request({
    url: '/pallet/pallets',
    method: 'put',
    data: data
  })
}

// 删除货盘
export function delPallets(id) {
  return request({
    url: '/pallet/pallets/' + id,
    method: 'delete'
  })
}
